﻿using System;

namespace Alex.Library.Log
{
    /// <summary>
    /// 跟踪代码日志
    /// </summary>
    public class TraceLogger : LoggerBase
    {
        /// <summary>
        /// 将日志信息输出到VisualS Studio的Output
        /// </summary>
        /// <param name="level">级别</param>
        /// <param name="message">消息</param>
        protected override void DoFlush(LogLevel level, string message)
        {
            string content = this.Template.Format(level, message);
            System.Diagnostics.Trace.WriteLine(content);
        }
    }
}
